import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int x = 0;
        int x1 = 1;
        int x2 = 1;
        if(n <= 2){
            System.out.println("1");
        }else if(n == 3){
            System.out.println("3");
        }else{

        }
    }
}
